This is happening for me when snapshotting small thumbnails in the file
chooser. The GtkScaler will scale the 1px height/width by 2, resulting
in nothing being drawn at all.
case GTK_IMAGE_GICON:
{
double x, y, w, h;
-
+
/* Never scale up icons. */
w = gdk_paintable_get_intrinsic_width (self->paintable);
h = gdk_paintable_get_intrinsic_height (self->paintable);
x = (width - w) / 2;
y = (height - h) / 2;
+ if (w == 0 || h == 0)
+ return;
+
if (x != 0 || y != 0)
{
gtk_snapshot_save (snapshot);